﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace Hinacom.Scheduler.Hosts.WinService.Configuration
{
    public class SchedulerWinServiceConfiguration: ConfigurationSection
    {
        public static SchedulerWinServiceConfiguration Current
        {
            get
            {
                return ConfigurationManager.GetSection("schedulerWinService") as SchedulerWinServiceConfiguration;
            }
        }

        [ConfigurationProperty("serviceName", IsRequired = true)]
        public string ServiceName
        {
            get
            {
                return this["serviceName"] as string;
            }
        }
        [ConfigurationProperty("displayName", IsRequired = true)]
        public string DisplayName
        {
            get
            {
                return this["displayName"] as string;
            }
        }
        [ConfigurationProperty("description", IsRequired = true)]
        public string Description
        {
            get
            {
                return this["description"] as string;
            }
        }
    }
}
